home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 255_01 / gotoxy.asm < prev    next >
Encoding:
Assembly Source File  |  1988-03-28  |  896 b   |  38 lines

  1.           page   80,132
  2.           page
  3.  
  4. ;  Author
  5. ;
  6. ;    Kent Cedola
  7. ;    2015 Meadow Lake Court
  8. ;    Norfolk, Virginia 23518
  9. ;
  10.  
  11. _TEXT     SEGMENT BYTE PUBLIC 'CODE'
  12.  
  13.           public _gotoxy
  14.  
  15.           ASSUME CS:_TEXT
  16.  
  17. _gotoxy   proc   near
  18.  
  19.           push   bp                    ; Save C frame pointer
  20.           mov    bp,sp                 ; Create new frame containing parameters
  21.  
  22.           mov    ah,0Fh
  23.           int    10h
  24.  
  25.           mov    dl,[bp+4]             ; Load specified attribute
  26.           mov    dh,[bp+6]             ; Load specified attribute
  27.  
  28.           mov    ah,2
  29.           int    10h                   ; <<< BIOS >>> - Video
  30.  
  31.           pop    bp                    ; Restore C frame pointer
  32.           ret                          ; Return to caller
  33.  
  34. _gotoxy   endp
  35.  
  36. _TEXT     ends
  37.           end
  38.